var app = angular.module('myApp', [ 'ui.router' ]);
app.run(function($rootScope, $state, $stateParams) {
	$rootScope.$state = $state;
	$rootScope.$stateParams = $stateParams;

});
app.config(function($stateProvider, $urlRouterProvider) {
	$urlRouterProvider.otherwise('/login');
	$stateProvider.state('login', {
		url : '/login',
		templateUrl : 'partials/login.html',
		controller : LoginCtrl
	}).state('index', {
		url : '/index',
		templateUrl : 'partials/index.html'
	}).state('signup', {
		url : '/signup',
		templateUrl : 'partials/signup.html',
		controller : SignUpCtrl
	})
});